package com.harmontronics.hanma.paas.paas.domain.iam.repository.mapper;

import com.harmontronics.hanma.paas.paas.domain.iam.entity.GroupComponent;
import com.harmontronics.hanma.paas.paas.domain.iam.repository.po.HmUserGroupComponentPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户组可见/可管理范围模块
 *
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-27 11:08:16
 */
@Mapper
public interface HmUserGroupComponentMapper extends BaseMapper<HmUserGroupComponentPO> {

    List<GroupComponent> selectByType(@Param("type") Integer type,@Param("userGroupId") Long userGroupId);

    List<GroupComponent> selectComponentWithGroupIdAndType(@Param("type") String type,@Param("groupId") Long groupId);

}
